Skip to content

[css-text] hanging-punctuation for aligning accounting numerals? #12209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hfhchan-plb opened this issue May 18, 2025 · 0 comments
Open

[css-text] hanging-punctuation for aligning accounting numerals? #12209

hfhchan-plb opened this issue May 18, 2025 · 0 comments

Comments

@hfhchan-plb
Copy link

hfhchan-plb commented May 18, 2025

It seems to be a common issue mentioned on stack-overflow where people try to get accounting numerals to align.

Illustration:

Image

Unfortunately, text-align: char doesn't work in any browser.

Using hanging-punctuation: last with text-align: end to allow the closing bracket to hang off the line end would do wonders.

However, in the only browser that currently supports hanging-punctuation, this doesn't work. Is this an implementation issue of Safari, or is this what the spec asks?

Testing using Safari:

Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants